﻿using UnityEngine;
using System.Collections;

namespace edu.wpi.cs.Project1
{
    public class SpinCollider : MonoBehaviour
    {

        /// <summary>
        /// The rotation speed of the collider.
        /// </summary>
        public const int ANGLE_PER_SECOND = 45;

        /// <summary>
        /// Use this for initialization
        /// </summary>
        void Start()
        {

        }

        /// <summary>
        /// Spins the collider rotation.
        /// </summary>
        void Update()
        {
            transform.Rotate(Vector3.forward * Time.deltaTime * ANGLE_PER_SECOND);
        }
    }
}
